﻿/*************************************
 * Creator:SW-PeiYang
 * DateTime:2025/9/8 16:12:28
 * Description:<Description>
 * CopyRight:
 * ***********************************/

using SqlSugar;
using SunnyPaine.Autofac.Extension.SqlSugar.Repository;
using SunnyPaine.Autofac.Extension.SqlSugar.Test.Model;
using SunnyPaine.Autofac.Extension.Stereotype.Attributes;
using System.Collections.Generic;

namespace SunnyPaine.Autofac.Extension.SqlSugar.Test.Dao.Impl
{
    [DataAccess]
    public class ProjectDao : BaseSqlSugar<Project>, IProjectDao
    {
        public ProjectDao(ISqlSugarClient context = null) : base(context)
        {
        }

        public override List<Project> SelectAll()
        {
            return base.Context.Ado.SqlQuery<Project>("select * from t_project");
        }
    }
}
